

#ifndef __COMMON_H_
#define __COMMON_H_
#include "led.h"
#include "driver/gpio.h"
#include "nvs_flash.h"
#include "esp_system.h"
#include "esp_chip_info.h"
#include "esp_psram.h"
#include "esp_flash.h"
#include "usart.h"
#include "iic.h"
#include "24cxx.h"
#include "ethernet_init.h"
#include "esp_log.h"
#include "esp_check.h"
#include "esp_mac.h"
#include "sdkconfig.h"
#include "beep.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/reent.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include <string.h>
#include <assert.h>
#include <sys/stat.h>
#include <dirent.h>
#include <inttypes.h>
#include "freertos/queue.h"
#include "esp_timer.h"
#include "esp_err.h"
#include "ffconf.h"
#include "errno.h"
#include "dido.h"

extern const uint8_t g_text_buf[];   
#define TEXT_SIZE   sizeof(g_text_buf)              

extern i2c_obj_t i2c0_master;
extern char usb_flge;

void Information(void);
void RS485_TxRx2(void);
void RS485_TxRx1(void);
void RS232_TxRx1(void);
void init_function(void);
void i2c_scan(i2c_obj_t *iic);
void at24cxx_one(void);
void at24cxx_continue(void);
void i2c_scan_improved(i2c_obj_t *iic);
void spi_sd(void);
void SPI_init_MCP23S17(void);
void MCP23S17_test(void);
void ads1115_task(void); 
void ads1115_sart(void);
void spi_lan8651(void);

#endif


